<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link href="lib/css/default.css" rel="stylesheet" type="text/css" />
<link href="lib/css/form.css" rel="stylesheet" type="text/css" />
<jsp:include page="../../../inc/css.jsp"></jsp:include>
<jsp:include page="../../../inc/js.jsp"></jsp:include>
<SCRIPT LANGUAGE="JavaScript">  
    $(document).ready(function(){  
    	$("#login").button().click(function() {
    		if($("#loginName").val()==''||$("#pwd").val()==''){
    			alert('账户或密码不能为空');
    			return false;
    		}
    		if($("#code").val()==''){
    			alert('验证码不能为空');
    			return false;
    		}
    		$("#form").submit();
    	});
    	$("#reset").button().click(function() {
    		$("#loginName").val('');
    		$("#pwd").val('');
    		return false;
    	});
    });
  </SCRIPT>
</head>
<body>
<jsp:include page="../../../head.jsp"></jsp:include>
<div class="container">
<div  style="background-color: #ffffff;height:200px;padding-top: 50px;">
<fieldset style="width: 300px;border: 1px solid #cccccc;margin:auto;">
<legend>管理员登录 </legend>
<form action="AdminCheckLogin.do" id="form" method="post">
<div><label>登录名：</label><input type="text" name="loginName" id="loginName" value="${param.loginName }"></div>
<div><label>密 码：</label><input type="password" name="pwd" id="pwd"></div>
<div><label>验证码：</label><input type="text" name="code" id="code" style="width: 30px;"> <img style="margin: 0; border: 0; cursor: hand" title="点击切换图片" align="top" src="getCodeImg" onClick="codeImg(this);" /></div>
<button id="login">登录</button>
<button id="reset">重置</button>
</form>
</fieldset>
</div>
</div>
<jsp:include page="../../../foot.jsp"></jsp:include>
</body>
</html>